home *** CD-ROM | disk | FTP | other *** search
Modula Definition | 1996-06-21 | 2.2 KB | 76 lines | [TEXT/MEDT] |
- DEFINITION MODULE DMDebugHelp;
-
- (*******************************************************************
-
- Module DMDebugHelp DM_V2.2
-
- Copyright ©1989 by Andreas Fischlin and Swiss
- Federal Institute of Technology Zürich ETHZ
-
- Version written for:
- 'Dialog Machine' DM_V2.2 (User interface)
- MacMETH_V3.2 (1-Pass Modula-2 implementation)
-
- Purpose Exports a few routines helping to display
- messages for debugging in order to avoid to
- have to call the debugger
-
- Remarks MacMETH 2.6+ does not allow to normally debug
- in Term procedures or to debug activate and
- deactivate events (ModalDialog box to call
- debugger prevents it). This module allows
- to get some information out of the system even
- in these cases
-
- Programming
-
- • Design
- A. Fischlin 16/11/89
-
- • Implementation
- A. Fischlin 16/11/89
-
- Swiss Federal Institute of Technology Zurich ETHZ
- Department of Environmental Sciences
- Systems Ecology Group
- ETH-Zentrum
- CH-8092 Zurich
- Switzerland
-
- Last revision of definition: 23/06/93 af
-
- *******************************************************************)
-
- IMPORT SYSTEM;
-
- PROCEDURE CopyString (from: ARRAY OF CHAR; i1: INTEGER;
- VAR to: ARRAY OF CHAR; VAR i2: INTEGER);
- PROCEDURE IntToString(x: LONGINT; VAR str: ARRAY OF CHAR; n: CARDINAL);
-
- PROCEDURE Write(ch: CHAR);
- PROCEDURE WriteString(s: ARRAY OF CHAR);
- PROCEDURE WriteLn;
- PROCEDURE WriteInt(x: LONGINT; n: CARDINAL);
- PROCEDURE WriteDataStructure(VAR x: ARRAY OF SYSTEM.BYTE;
- b: BOOLEAN; li: LONGINT;
- msg: ARRAY OF CHAR);
-
- PROCEDURE MessageWindow(x,y,w,h: INTEGER; p: PROC);
- (* display a message window (Quickdraw coordinates, i.e. top left
- of main screen x = 0, y = 0) *)
-
- PROCEDURE StartReportOnFile(fileName, msg: ARRAY OF CHAR);
- (* write subsequently to file *)
- PROCEDURE CloseReportFile(msg: ARRAY OF CHAR);
- (* stop writing to file *)
-
- PROCEDURE GetModuleIdent(moduleID: INTEGER; VAR modId: ARRAY OF CHAR);
- (* return modId given a moduleID as exported by DMBase *)
- VAR
- lastModuleID: ARRAY [0..31] OF CHAR; (* assigned by any call to GetModuleIdent *)
-
- PROCEDURE Message(s1,s2: ARRAY OF CHAR);
-
- END DMDebugHelp.
-
-